package com.sm.tool.exception;


import com.sm.tool.entity.response.ReturnData;

public class VerifyException  extends RuntimeException{


    private Integer code;

    public VerifyException() {

    }

    public VerifyException(ReturnData resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public VerifyException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
